/**
 * 功能:TK_VEHICLES Service类
 * 开发人员:chengd
 * 创建时间:2012/10/15 21:41:42
 */
package com.towker.frame.service.basicData;

import org.springframework.stereotype.Service;
import com.towker.core.db.EntityDao;
import com.towker.core.db.BaseService;
import com.towker.frame.model.basicData.Vehicle;
import com.towker.frame.dao.basicData.VehicleDao;

@Service
public class VehicleService extends BaseService<Vehicle, java.lang.Long>
{
	private VehicleDao dao;
	
	public void setVehicleDao(VehicleDao dao)
	{
		this.dao = dao;
	}

	@SuppressWarnings("unchecked")
	@Override
	protected EntityDao getEntityDao()
	{
		return this.dao;
	}

	public boolean checkExistsCode(String vehicle_sn, Integer id) {
		return dao.checkExistsCode(vehicle_sn, id);
	}
}
